package com.cql.sys.mapper;

import com.cql.pojo.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    int add(Role role) throws Exception;
    Role findByName(String name) throws Exception;
    List<Role> roles() throws Exception;

    int update(Role role) throws Exception;
    int delete(Role role) throws Exception;
}
